<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <title>{$activity_info['jsonstr']['pageTitle']}</title>
    <link rel="stylesheet" type="text/css" href="{$Think.config.RESOURCEURL}wx_assets/scanforgift/css/index.css{$Think.config.RESOURCE_VER}" />
    <script src="{$Think.config.RESOURCEURL}wx_assets/scanforgift/js/remApp.js" type="text/javascript" charset="utf-8"></script>
   
    <script src="{$Think.config.RESOURCEURL}wx_assets/js/zepto.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="{$Think.config.RESOURCEURL}wx_assets/js/layer.m.js" type="text/javascript" charset="utf-8"></script>
    <script src="{$Think.config.RESOURCEURL}wx_assets/js/common.js{$Think.config.RESOURCE_VER}" type="text/javascript" charset="utf-8"></script>
    <script src="{$Think.config.RESOURCEURL}wx_assets/js/util.js" type="text/javascript" charset="utf-8"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="{$Think.config.RESOURCEURL}wx_assets/womenday/js/wx_share.js{$Think.config.RESOURCE_VER}" type="text/javascript" charset="utf-8"></script>
</head>
<script type="text/javascript">
    var actId=$.util.getParamByObject("actId"),
    chanelId=$.util.getParamByObject("chanelId"),
    partake_id="{$qcode_info['partakeId']}",
    customerId=$.util.getParam("customerId"),
    fromUserId=$.util.getParam("fromUserId"),
    fromUserIdstr="",
    params={actId:actId},
    geturl=function(method,bool,bool1){
        if(chanelId)params.chanelId=chanelId;
        if(bool1&&partake_id)params.partake_id=partake_id;
        fromUserIdstr=fromUserId?"&fromUserId="+fromUserId:"";
        if(!method)method="index";
        if(bool&&!fromUserId)
        fromUserIdstr="&fromUserId={$userId}";
        return "call.html?module=scanforgift&method="+method+fromUserIdstr+"&customerId="+customerId+"&params="+encodeURIComponent(JSON.stringify(params))
    },
    sharelink=geturl("join_now",0,1);
</script>
<script type="text/javascript">
    //是否参加过
    var code = "{$code}";
    //是否填写过
    var gain_status="{$record_info.gain_status}";  
    
</script>
<style>
    .container
    {
        padding: 0;
    }
</style>
<body>
    <div class="container">
        <img src="{$activity_info.jsonstr.followBackground.src}" alt="">
    </div>
</body>
<script type="text/javascript">
var baseUrl = '{$Think.config.SERVER_HOST}';
var shareData = {
        "title": "{$activity_info.title}",
        "desc": "{$activity_info.description}",
        "link": baseUrl+sharelink,
        "imgUrl": "{$activity_info.picurl}",
        "pkg": {
            "appId": '{$pkg.appId}',
            "timestamp": {$pkg['timestamp']?$pkg['timestamp']:'""'},
            "nonceStr": '{$pkg.nonceStr}',
            "signature": '{$pkg.signature}'
        },
        "hideOptionMenu":true
    }
$(function() {
    wx_share.init(shareData);
})
</script>

</html>
